@extends("admin.public.layout")

@section("content")

        <div class="container-xxl flex-grow-1 container-p-y">


            <div class="row">



                <!-- Form controls -->
                <div class="col-md-6">
                    <div class="card mb-4">
                        <h5 class="card-header">{{$pageName}}</h5>
                        <div class="card-body">

                            <form action="{{ route('adminRoleUpdate') }}" method="post">
                                @csrf
                                <input required type="hidden"  name="id" value="{{$role->id}}">

                                <div class="mb-3">
                                    <label for="role_name" class="form-label">角色名称</label>
                                    <input required type="text" class="form-control" id="role_name" name="role_name" value="{{$role->role_name}}">
                                </div>
                                <div class="mb-3">
                                    <label for="role_code" class="form-label">角色标识</label>
                                    <input required class="form-control" type="text" id="role_code" name="role_code" value="{{$role->role_code}}">
                                </div>
                                <div class="mb-3">
                                    <input required type="submit" class="form-control"  value="修改">
                                </div>

                            </form>

                        </div>
                    </div>
                </div>

            </div>
        </div>

@endsection
